#ifndef LOGINWIDGET_H
#define LOGINWIDGET_H

#include <QWidget>

namespace Ui {
class LoginWidget;
}

class LoginWidget : public QWidget
{
    Q_OBJECT

public:
    explicit LoginWidget(QWidget *parent = 0);
    ~LoginWidget();

    static int userId;
    static QString userName;
    static int userRole;

private slots:
    void on_btn_login_clicked();

private:
    Ui::LoginWidget *ui;
    void initWidget(); //初始化窗体
};

#endif // LOGINWIDGET_H
